﻿using YunZuan.Models.Attributes;
using YunZuan.Models.Entities;

namespace YunZuan.Models
{
    [Table(TableName = "yz_address", PrimaryKey = "ID")]
    public partial class ReceivingAddress : BaseEntity
    {
        public ReceivingAddress()
        { }
        #region Model
        private int? _id;
        /// <summary>
        ///主建自增
        /// </summary>
        [Column(IsAutoIncrement = true)]
        public int? ID
        {
            get { return _id; }
            set { this.ChangeNotify<int?>("ID", value, ref _id); }
        }
        private int _customerid;
        /// <summary>
        ///
        /// </summary>
        public int CustomerID
        {
            get { return _customerid; }
            set { this.ChangeNotify<int>("CustomerID", value, ref _customerid); }
        }
        private string _address;
        /// <summary>
        ///
        /// </summary>
        public string Address
        {
            get { return _address; }
            set { this.ChangeNotify<string>("Address", value, ref _address); }
        }
        private bool? _isdefault;
        /// <summary>
        ///
        /// </summary>
        public bool? IsDefault
        {
            get { return _isdefault; }
            set { this.ChangeNotify<bool?>("IsDefault", value, ref _isdefault); }
        }
        private string _name;
        /// <summary>
        ///
        /// </summary>
        public string Name
        {
            get { return _name; }
            set { this.ChangeNotify<string>("Name", value, ref _name); }
        }
        private string _tel;
        /// <summary>
        ///
        /// </summary>
        public string Tel
        {
            get { return _tel; }
            set { this.ChangeNotify<string>("Tel", value, ref _tel); }
        }
        #endregion
    }
}
